package cn.javass.dp.chianofresponsibility.mydemo1;

public class ConcreteHandle2 extends Handle {

    @Override
    public void handleRequest() {
        boolean flag = true;
        if (flag) {
            System.out.println("2");
            if (successor !=null) {
                successor.handleRequest();
            }
        }
    }
}
